package com.atguigu.gulimall.order.feign.fallback;

import com.atguigu.gulimall.order.feign.CartFeignService;
import com.atguigu.gulimall.order.vo.OrderItemVo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 优惠远程服务错误熔断
 *
 * @author xiaoping
 * @create 2020/7/13 18:50
 * @since 1.0.0
 */
@Slf4j
@Component
public class CartFeignServiceFallBack implements CartFeignService {

    /**
     * 获取当前会员选中的购物项
     */
    @Override
    public List<OrderItemVo> getCurrentUserCartItems() {
        log.error("熔断方法调用...getCurrentUserCartItems");
        return null;
    }
}
